package com.engine.cn.leetcode.tree;

import lombok.Data;

/**
 * 这是二叉树的节点数据
 */
@Data
public class BinaryTree {
    String val;
    BinaryTree left;
    BinaryTree right;

    BinaryTree() {
    }

    BinaryTree(String val) {
        this.val = val;
    }

    BinaryTree(String val, BinaryTree left, BinaryTree right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
